package com.PVZ.engine.map.level;

import com.PVZ.engine.factory.PlantFactory;
import com.PVZ.engine.factory.ZombieFactory;
import com.PVZ.engine.map.GameMap;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ISY
 * @create 2021-06-05 21:48
 */
@Data
@NoArgsConstructor
public abstract class Level {
    /**
     * 可能用到的时间
     * 关卡时间
     */
    private long levelTime=0;

    //关卡名
    public String name;

    public String bgm = "";

    public GameMap gameMap;

    ZombieFactory zombieFactory = new ZombieFactory();

    PlantFactory plantFactory = new PlantFactory();

    /**
     * 生成各关的僵尸
     */
    public abstract void generateZombies(int gamePlayTime);
}
